﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class IronNPC:NPC
    {
        private string ironInfo;

        public IronNPC(string name, NPCType type, string shopInfo) : base(name,type)
        {
            this.ironInfo = ironInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你好，你来了！你有什么需要的吗？");
            Console.WriteLine("我是{0},{1}", base.Name, this.ironInfo);
        }
    }
}
